#include "vzbase/base/loggingsettings.h"
#include "remote/base/basedefines.h"
#include "remote/client/client.h"

int main(int argc, char *argv[]) {

  vzbase::InitLoggingSystem(argc, argv);

  boost::asio::io_service io_service;

  remote::Client::Ptr client(new remote::Client(io_service));

  client->Start("127.0.0.1", remote::DEFAULT_SERVER_PORT);

  while (true) {
    try {
      io_service.run();
    } catch(std::exception &e) {
      LOG(ERROR) << e.what();
    }
  }

  return EXIT_SUCCESS;
}